package com.example.thread.base.pojo;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/10/19 13:55
 */

public class ServerPojo {
    /**
     * Ip地址
     */
    private String ipAddr;
    /**
     * 权重
     */
    private Integer weight;

    public String getIpAddr() {
        return ipAddr;
    }

    public void setIpAddr(String ipAddr) {
        this.ipAddr = ipAddr;
    }


    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public ServerPojo(String ipAddr) {
        this.ipAddr = ipAddr;
    }

    public ServerPojo(String ipAddr,Integer weight) {
        this.ipAddr = ipAddr;
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "ServerPojo{" +
                "ipAddr='" + ipAddr + '\'' +
                ", weight=" + weight +
                '}';
    }
}
